package com.wsz.logistic.service;

import com.wsz.logistic.bean.Deliverier;
import com.wsz.logistic.bean.OrderStatus;
import com.wsz.logistic.bean.Userinfo;
import com.wsz.logistic.common.form.LoginForm;
import com.wsz.logistic.common.form.RegisterForm;
import com.wsz.logistic.common.util.R;

public interface UserinfoService {
    Userinfo login(LoginForm loginForm);

    void register(RegisterForm registerForm);

    R getPage(int page, int limit, Userinfo userinfo);

    void saveOrUpdate(Userinfo userinfo);

    void deleteById(int userinfoId);

    public Userinfo getById(int userinfoId);

    R checkPassword(Userinfo userinfo);

    Deliverier getDById(int deliverierId);

    void setDeliverier(Deliverier deliverier);

    void setOrderStatus(OrderStatus orderStatus);
}
